home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / AppleScript / Development Tools / Sample Code / 7Edit 3.1 / Sources / SVEditFile.h < prev    next >
Encoding:
Text File  |  1995-11-20  |  1.3 KB  |  52 lines  |  [TEXT/MPS ]

  1. // SVEditFile.h
  2. //
  3. // 7Edit 3.1d1. Original version by Jon Lansdell and Nigel Humphreys.
  4. // 3.1 updates by Greg Sutton.
  5. // ©Apple Computer Inc 1995, all rights reserved.
  6.  
  7. #ifndef __SVEDITFILE__
  8. #define __SVEDITFILE__
  9.  
  10. #include <Memory.h>
  11. #include <Quickdraw.h>
  12. #include <Traps.h>
  13. #include <Files.h>
  14. #include <Packages.h>
  15. #include <Editions.h>
  16. #include <AppleEvents.h>
  17. #include <Printing.h>
  18.  
  19. #include "SVEditGlobals.h"
  20. #include "SVEditUtils.h"
  21. #include "SVEditWindow.h"
  22.                  
  23. pascal void DoQuit(DescType saveOpt);
  24.  
  25. pascal OSErr DoClose(WindowPtr aWindow,Boolean canInteract,DescType dialogAnswer);
  26.  
  27. short DoFileDialog ( short theDlogID, WindowRef theWindow );
  28.  
  29. pascal OSErr GetFileNameToSaveAs(DPtr theDocument);
  30.  
  31. pascal OSErr DoSave(DPtr theDocument, FSSpec theFSSpec);
  32.  
  33. pascal OSErr GetFileContents(FSSpec theFSSpec, DPtr theDocument);
  34.  
  35. pascal void FileError(Str255 s, Str255 f);
  36.  
  37. pascal OSErr DoCreate(FSSpec theSpec);
  38.  
  39. pascal OSErr WriteFile(DPtr theDocument, short refNum, FSSpec theFSSpec);
  40. pascal OSErr ReadFile(DPtr theDocument, short  refNum, Str255 fn);
  41.  
  42. pascal OSErr SaveUsingTemp(DPtr theDocument);
  43.  
  44. pascal OSErr OpenOld(FSSpec aFSSpec);
  45.  
  46. pascal OSErr OpenUsingAlias(AliasHandle theAliasH);
  47.  
  48. pascal OSErr GetFile(FSSpec *theFSSpec);
  49.  
  50. short DoSaveBeforeClosing ( short theDlogID, WindowRef theWindow );
  51.  
  52. #endif